package reflect_method;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class Dog {
    private String name;

    public Dog() {
    }

    public Dog(String name) {
        this.name = name;
    }

    public void run() {
        System.out.println(name + "跑步....");
    }

    private void eat() {
        System.out.println(name + "吃饭");
    }

    private String eat(String name) {
        System.out.println(this.name + "吃" + name);
        return "吃得很开心";
    }

    public static void in() {
        System.out.println("学java....");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
